package com.flyco.pageindicator.anim.select;

import com.flyco.pageindicator.anim.base.IndicatorBaseAnimator;
import ohos.agp.animation.Animator;
import ohos.agp.components.Component;

/**
 * 没选中变为选中时的翻转动画类
 */
public class RotateEnter extends IndicatorBaseAnimator {

    @Override
    public Animator setAnimation(Component component) {
        return component.createAnimatorProperty().rotate(180).setDuration(200);
    }

}
